#ifndef _PLAYERONE_H_
#define _PLAYERONE_H_



#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "PlayerBasic.h"
#include "someDefineForTest.h"
#include "Skill.h"
//#include "GameEngine.h"

using namespace cocos2d;



struct SkillList
{
	SkillList* next;
	SkillList* prev;
	Skill* skill;
};




class Player : public PlayerBasic
{
protected:

	bool isAlive;
	int HP;
	int MP;
	int experienceValue;
	int level;
	int assets;

public:

	CCSprite* sprite;

	CCLabelTTF* label;

	SkillList* m_SkillHead;
	SkillList* m_SkillRear;

	SkillList* m_enableSkillHead;
	SkillList* m_enableSkillHead;

public:

	Player();
	~Player();

	virtual bool init();
	static Player* create();

	bool insertNewSkill(Skill* skill);
	void deleteSkillList();
	bool enabelSkill(int tag);
	void deleteEnableSkillList();
	bool checkTag(int tag);

	bool getAliveStatus();
	void setAliveStatus(bool isAlive);

	int getHP();
	void updateHP(int HP);

	int getMP();
	void updateMP(int MP);

	int getLevel();
	void updateLevel(int grade);

	int getExperience();
	void updateExperience(int experience);

	int getAssets();
	void updateAssets(int asstes);

	bool initSprite(const char* filepath);

	void SaySomething(const char* words);

	/////// 
	//virtual void statusUpdate(bool fight_result);


};





#endif